package com.finalhomework.dms.dao;

import com.finalhomework.dms.entities.Dormitory;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface DorRepository extends CrudRepository<Dormitory,Long> {

    @Override
    public List<Dormitory> findAll();

    public Dormitory getDormitoryById(long id);

    public Dormitory deleteById(long id);
}
